package com.jason.orc.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 百度授权认证AccessToken
 */
@Data
@Accessors(chain = true)
public class BaiduAccessTokenVo {

    @JSONField(name = "refresh_token")
    private String refreshToken;
    /**
     * Access Token的有效期(秒为单位，一般为1个月)；
     */
    @JSONField(name = "expires_in")
    private int expiresIn;

    private String scope;

    @JSONField(name = "session_key")
    private String sessionKey;

    /**
     * 要获取的Access Token
     */
    @JSONField(name = "access_token")
    private String accessToken;

    @JSONField(name = "session_secret")
    private String sessionSecret;

    private String error;

    @JSONField(name = "error_description")
    private String errorDescription;

}
